﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BusinessLogic
{
    public class AddEditUserCommand : BaseCommand<object>
    {
        public AddEditUserCommand(int userId, string NewPassword)
        {
            //Change password
            SetQuery(string.Format("update acm_user set user_password='{0}' where id={1}",NewPassword,userId.ToString()));
        }

        public override void Command()
        {
            Result = cmd.ExecuteNonQuery();
        }
    }
}
